<!DOCTYPE html>
<html lang="en" xmlns:th="http://thyneleaf.org">
<head>
    <meta charset="UTF-8">
</head>
<body>
<div th:replace="/common/header"></div>
<div id="Content">
<c:if test="${!empty sessionScope.myList}">
    <p>Pet Favorites <br />
        Shop for more of your favorite pets here.</p>
    <ul>
        <c:forEach var="product" items="${sessionScope.myList}">
            <li>
                <a href="ViewProduct" name="productId" value="${product.productId}" />
                ${product.name}
                </a> (${product.productId})</li>
        </c:forEach>
    </ul>

</c:if>
</div>
<div th:replace="/common/footer"></div>
</body>
</html>